package com.ruoyi.dgw.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dgw.mapper.TagNumberVaMapper;
import com.ruoyi.dgw.domain.TagNumberVa;
import com.ruoyi.dgw.service.ITagNumberVaService;

/**
 * 耳标申请Service业务层处理
 * 
 * @author ll
 * @date 2021-12-29
 */
@Service
public class TagNumberVaServiceImpl implements ITagNumberVaService 
{
    @Autowired
    private TagNumberVaMapper tagNumberVaMapper;

    /**
     * 查询耳标申请
     * 
     * @param id 耳标申请主键
     * @return 耳标申请
     */
    @Override
    public TagNumberVa selectTagNumberVaById(Long id)
    {
        return tagNumberVaMapper.selectTagNumberVaById(id);
    }

    /**
     * 查询耳标申请列表
     * 
     * @param tagNumberVa 耳标申请
     * @return 耳标申请
     */
    @Override
    public List<TagNumberVa> selectTagNumberVaList(TagNumberVa tagNumberVa)
    {
        return tagNumberVaMapper.selectTagNumberVaList(tagNumberVa);
    }

    /**
     * 新增耳标申请
     * 
     * @param tagNumberVa 耳标申请
     * @return 结果
     */
    @Override
    public int insertTagNumberVa(TagNumberVa tagNumberVa)
    {
        return tagNumberVaMapper.insertTagNumberVa(tagNumberVa);
    }

    /**
     * 修改耳标申请
     * 
     * @param tagNumberVa 耳标申请
     * @return 结果
     */
    @Override
    public int updateTagNumberVa(TagNumberVa tagNumberVa)
    {
        return tagNumberVaMapper.updateTagNumberVa(tagNumberVa);
    }

    /**
     * 批量删除耳标申请
     * 
     * @param ids 需要删除的耳标申请主键
     * @return 结果
     */
    @Override
    public int deleteTagNumberVaByIds(Long[] ids)
    {
        return tagNumberVaMapper.deleteTagNumberVaByIds(ids);
    }

    /**
     * 删除耳标申请信息
     * 
     * @param id 耳标申请主键
     * @return 结果
     */
    @Override
    public int deleteTagNumberVaById(Long id)
    {
        return tagNumberVaMapper.deleteTagNumberVaById(id);
    }

    @Override
    public List<Map<String, String>> queryVillage() {
        return tagNumberVaMapper.queryVillage();
    }

    @Override
    public List<Map<String, String>> queryCunVillage(String villagesTowns) {
        return tagNumberVaMapper.queryCunVillage(villagesTowns);
    }
}
